<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
<title>Insert title here</title>
</head>
<body>
	<div style="margin-left: auto; margin-right: auto; width: 95%">
		<div class="row">
			<div id="toolbar">
				<form class="form-inline"  role="form">
					<input type="hidden" value="${zx_opr}" name="opr" id="opr">
					<div class="form-group">
						<c:if test="${zx_opr=='notHf' || zx_opr=='historyzx'}">
							<div class="form-group">
								<label class="sr-only" for="searcher_date">时间</label>
								<div class="input-group">
									<div class="input-group-addon">时间</div>
									<input class="form-control form_datetime" id="search_zxDate"
										name="search_zxDate" type="text" placeholder="请输入时间">
								</div>
							</div>
						</c:if>
						<c:if test="${zx_opr=='historyzx'}">
							<div class="form-group">
								<label class="sr-only" for="searcher_name">姓名</label>
								<div class="input-group">
									<div class="input-group-addon">姓名</div>
									<input class="input-medium ui-autocomplete-input" id="empName"
										name="empName" placeholder="请输入姓名">
								</div>
							</div>
							<div class="form-group">
								<label class="sr-only" for="searcher_name">QQ号码</label>
								<div class="input-group">
									<div class="input-group-addon">QQ号码</div>
									<input class="input-medium ui-autocomplete-input" id="empQQ"
										name="empQQ" placeholder="请输入QQ号码">
								</div>
							</div>
							<div class="form-group">
								<label class="sr-only" for="searcher_name">学校</label>
								<div class="input-group">
									<div class="input-group-addon">学校</div>
									<input class="input-medium ui-autocomplete-input" id="school"
										name="school" placeholder="请输入学校">
								</div>
							</div>
						</c:if>
						<div class="form-group">
							<label class="sr-only" for="searcher_name">咨询师</label>
							<div class="input-group">
								<div class="input-group-addon">咨询师</div>
								<select class="form-control" name="searcher_zxId"
									id="searcher_zxId">
									<option value="">--请选择咨询师--</option>
									<c:if test="${userMap != null }">
										<c:forEach var="userMap" items="${userMap}">
											<option value="${userMap.user_id}">${userMap.user_name}</option>
										</c:forEach>
									</c:if>
								</select>
							</div>
						</div>
					</div>
					<button type="button" class="btn btn-primary queryButton"
						id="search">查询</button>
				</form>
			</div>
			<div class="col-xs-12">
				<div class="row">
					<div class="col-xs-12">

						<div style="position: absolute; top: 15px" id="btns">
							<permission:each
								items="${sessionScope.loginUser.permissionList }" type="emp"
								var="permission">
								<a href="#" class="btn ${permission.color }  btn-sm"
									data-code="${permission.code }"> <i
									class="${permission.icon }"></i>${permission.name}
								</a>
							</permission:each>
						</div>
						<table id="table"></table>
					</div>
					<div class="modal fade" id="myModal_zx" tabindex="-1" role="dialog"
						aria-labelledby="myModalLabel" aria-hidden="true">
						<form id="myModalForm_zx" class="form-horizontal" role="form"
							action="" method="post">
							<input type="hidden" name="empId" id="empId"> <input
								type="hidden" name="descId" id="descId">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModalLabel">请输入备注内容</h4>
									</div>
									<div class="modal-body">
										<textarea class="form-control" id="zxDesc" name="zxDesc"
											rows="8" style="min-width: 70%"></textarea>
									</div>
									<div class="modal-body">
										<div class="control-group">
											<label>回访时间：</label> <input
												class="form-control form_datetime" id="hfDate" name="hfDate"
												type="text" placeholder="请输入回访时间">
										</div>
									</div>
									<div class="modal-body">
										<div class="control-group">
											<label>是否再回访：</label> <label> 需要<input
												name="hfStatus" class="ace" type="radio" value="0" checked />
												<span class="lbl"></span>
											</label> <label>不需要<input name="hfStatus" class="ace"
												type="radio" value="1" /> <span class="lbl"></span>
											</label>
										</div>
									</div>
									<div class="modal-footer">
										<button type="button" class="btn btn-default"
											data-dismiss="modal">关闭</button>
										<button class="btn btn-info" type="button" id="save-btn">
											<i class="icon-ok bigger-110"></i> 保存
										</button>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>